package com.oneproject.infrastructure.data.unitofwork;

import java.util.HashMap;
import java.util.Map;

/**
 * 模型构建类
 *
 * @author 马文韬
 * @Date: 2018/9/12
 * @Version 1.0
 */
public final class ModelBuilder {

    final Map<Class<?>, Map<String, Object>> modelMap = new HashMap<Class<?>, Map<String, Object>>();

    public EntityBuilder entity(Class<?> clazz) {
        modelMap.put(clazz, new HashMap<String, Object>());
        EntityBuilder entityBuilder = new EntityBuilder(this, clazz);
        return entityBuilder;
    }

}
